package com.myk.game.heroscuffle.game;

import com.myk.game.heroscuffle.events.GameEvent_HeroAttack;
import com.myk.game.heroscuffle.events.GameEvent_HeroDead;
import com.myk.game.heroscuffle.events.GameEvent_RoundEnd;
import com.myk.game.heroscuffle.events.GameEvent_RoundStart;
import com.myk.game.heroscuffle.events.GameEventListener;

/**
 * 游戏流程各种事件的监听中心
 */
public class GameEvents {

    /**
     * 回合开始事件
     */
    public GameEventListener<GameEvent_RoundStart> onRoundStart;
    /**
     * 回合结束事件
     */
    public GameEventListener<GameEvent_RoundEnd> onRoundEnd;
    /**
     * 英雄普攻事件
     */
    public GameEventListener<GameEvent_HeroAttack> onHeroAttack;
    /**
     * 英雄死亡事件
     */
    public GameEventListener<GameEvent_HeroDead> onHeroDead;

    public GameEvents() {
        onRoundStart = new GameEventListener<>();
        onRoundEnd = new GameEventListener<>();
        onHeroAttack = new GameEventListener<>();
        onHeroDead = new GameEventListener<>();
    }
}
